/**
 * Common Platcode JavaScript Library
 * @author ReGeDa
 */

(function() {

	/**
	 * Waiting images
	 * @author ReGeDa
	 */

	var micro = $.createImage("/images/mwait.gif");
	var macro = $.createImage("/images/wait.gif");

	// create <img> element
	function createImgTag(parent, image) {
		return parent.append("img", {src: image.src});
	}

	window.jWait = {
		micro: function(parent) {
			return createImgTag(parent, micro);
		},
		macro: function(parent) {
			return createImgTag(parent, macro);
		}
	};

	// global confirm
	window.acceptContinue = function() {
		return window.confirm(jLang.sureContinue);
	};

})();

// end of file